#include "basewidget.h"
#include <QPainter>
#include <QApplication>
BasePreviewWidget::BasePreviewWidget(QWidget *parent) : QWidget(parent)
{
    this->setAutoFillBackground(true);
    this->setBackgroundRole(QPalette::Window);
}

void BasePreviewWidget::paintEvent(QPaintEvent *event)
{
//    QPainter painter(this);
//    QBrush backgroundBrush(palette().color(QPalette::Window));
//    painter.setBrush(backgroundBrush);
//    painter.setPen(Qt::NoPen);
    QWidget::paintEvent(event);
}

BaseLeftWidget::BaseLeftWidget(QWidget *parent)
{
    this->setAutoFillBackground(true);
    this->setBackgroundRole(QPalette::Base);
}
